<%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ page isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
  String path = request.getContextPath();
  String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
  String _id=request.getParameter("_");
%>
<div class="form-horizontal">
    <div class="form-group">
        <label class="col-md-2 control-label">
            所有人
        </label>
        <div class="col-md-6">
            <div class="checkbox">
                <input type="checkbox" id="allMan" class="magic-checkbox" disabled <c:if test='${commonConfig.allmans==true}'>checked</c:if> >
                <label for="allMan"></label>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="col-md-2 control-label">
            部门
        </label>
        <div class="col-md-6">
            <input  disabled type="text" id="departNames" class="form-control"
                    value="<c:forEach items="${commonConfig.departmentSet}" varStatus="i" var="list" ><c:if test="${list.state.toString() == 'Enable'}">${list.name}<c:if test="${!i.last}">,</c:if></c:if></c:forEach>"/>
            <input type="hidden" id="departIds" name="departId"
                   value="<c:forEach items="${commonConfig.departmentSet}" varStatus="i" var="list" ><c:if test="${list.state.toString() == 'Enable'}">${list.id}<c:if test="${!i.last}">,</c:if></c:if></c:forEach>"/>
        </div>
    </div>

    <div class="form-group">
        <label class="col-md-2 control-label">
            岗位
        </label>
        <div class="col-md-6">
            <input disabled  type="text" id="postNames" class="form-control"
                   value="<c:forEach items="${commonConfig.postSet}" varStatus="i" var="list" ><c:if test="${list.state.toString() == 'Enable'}">${list.name}<c:if test="${!i.last}">,</c:if></c:if></c:forEach>"/>
            <input type="hidden" id="postIds" name="postId"
                   value="<c:forEach items="${commonConfig.postSet}" varStatus="i" var="list" ><c:if test="${list.state.toString() == 'Enable'}">${list.id}<c:if test="${!i.last}">,</c:if></c:if></c:forEach>"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-md-2 control-label">
            职权
        </label>
        <div class="col-md-6">
            <input disabled  type="text" id="powerNames"  class="form-control"
                   value="<c:forEach items="${commonConfig.powerSet}" varStatus="i" var="list" ><c:if test="${list.state.toString() == 'Enable'}">${list.department.name}-${list.post.name}<c:if test="${!i.last}">,</c:if></c:if></c:forEach>" />
            <input type="hidden"  id="powerIds" name="powerId"
                   value="<c:forEach items="${commonConfig.powerSet}" varStatus="i" var="list" ><c:if test="${list.state.toString() == 'Enable'}">${list.id}<c:if test="${!i.last}">,</c:if></c:if></c:forEach>"/>
        </div>
    </div>

    <div class="form-group">
        <label class="col-md-2 control-label">
            群组
        </label>
        <div class="col-md-6">
            <input disabled type="text" id="roleNames"  class="form-control"
                   value="<c:forEach items="${commonConfig.groupSet}" varStatus="i" var="list" ><c:if test="${list.state.toString() == 'Enable'}">${list.name}<c:if test="${!i.last}">,</c:if></c:if></c:forEach>"/>
            <input type="hidden" id="roleIds" name="roleId"
                   value="<c:forEach items="${commonConfig.groupSet}" varStatus="i" var="list" ><c:if test="${list.state.toString() == 'Enable'}">${list.id}<c:if test="${!i.last}">,</c:if></c:if></c:forEach>"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-md-2 control-label">
            域名
        </label>
        <div class="col-md-6">
            <input disabled type="text" name="variable" id="variable" class="form-control"
                   value="${commonConfig.variable}"/>
        </div>
    </div>

</div>

